[Unit]
Description=zookeeper.service
After=network.target

[Service]
Type=forking
User=appadmin
Group=users
Environment=ZOO_LOG_DIR={{ logs_path }}/zookeeper
Environment=JAVA_HOME={{ java_home }}
ExecStart={{ install_path }}/zookeeper/bin/zkServer.sh start
ExecStop={{ install_path }}/zookeeper/bin/zkServer.sh stop
ExecReload={{ install_path }}/zookeeper/bin/zkServer.sh restart

[Install]
WantedBy=multi-user.target